@layout("/common/_container.html"){
<style>
	.input-group{
		/*width:45%;*/
	}
	.row input[type=text],.form-control, .single-line{
	    width:35%;
        float:left;
    }
    .error{
        color:red;
        float:left;
        padding-top: 7px;
        padding-left: 10px;
    }
    .isShow label{
        padding-right:10px;
        padding-top:3px;
    }
	.input-group{
		width:60%;
		margin:0 auto;
	}
	.row input[type=text]{
	width:45%; 
    }
    .error{
        color:red;
    }

</style>
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <input type="hidden" id="id" value="">

            <div class="row">
                			<#input id="adName" name="广告标题" underline="false"/>
                			<#input id="adSort" name="排序号" underline="false"/>
                            <#Select id="positionType" name="类型" >
                                <option value="">请选择</option>
                                <option value="1">PC版</option>
                                <option value="2">APP版</option>
                            </#Select>
                            <#Select id="adPositionId" name="广告位置" >
                                <option value="">请选择</option>
                            </#Select>

                            <#Select id="URLType" name="链接类型" >
                                <option value="0">请选择</option>
                                <option value="1">内部链接(App端请使用此链接)</option>
                                <option value="2">外部链接(pc端及外部请使用此链接）</option>
                            </#Select>

                <div class="row" id="soNamed" style="display: none;">
                    <!--<div class="col-sm-6">-->
                            <!--<#input id="soName" name="名称" />-->
                    <!--</div>-->
                    <!--<div class="col-sm-3" style="width:270px">-->
                            <!--<#button name="搜索" icon="fa-search" clickFun="search()"/>-->
                    <!--</div>-->
    <div class="form-group">
        <label class="col-sm-3 control-label">名称</label>
        <div class="col-sm-3">
            <input id="soName" type="text" class="form-control" style="width: 100%" disabled>
        </div>
        <div class="col-sm-3">
            <button class="btn btn-primary " onclick="so()">  <i class="fa fa-search"></i>搜索</button>
        </div>
    </div>
                </div>
        <div id="adURLd" style="display: none;">
                			<#input id="adURL" name="广告网址" underline="false"/>
        </div>
                
                            <!-- <#input id="adFile" name="广告图片" underline="true"/> -->
                                <#TimeCon id="startDate" name="广告开始时间" isTime="false" pattern="YYYY-MM-DD" />
                                <#TimeCon id="endDate" name="广告结束时间" isTime="false" pattern="YYYY-MM-DD" />

                           <#avatar id="adFile" name="广告图片" underline="false"/>
            </div>
									<div id="progressBar" style="width: 0%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" role="progressbar" class="progress-bar progress-bar-info">
                                    </div>
            <div class="row btn-group-m-t">
                <div class="col-sm-10" style="text-align:center;">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="AdsInfoDlg.addSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="AdsInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/huamao/ads/ads_info.js"></script>
@}